<?php
namespace other\tongtu;
use other\ShopingConn;
use other\Table;
use think\Db;
use think\db\exception\DataNotFoundException;
use think\db\exception\ModelNotFoundException;
use think\Exception;
use think\exception\DbException;
use think\Log;

/**
 * 推送到通途 - 方便采购操作发货
 */
class ShipOrderId  extends BaseC
{
    /**
     * 操作
     * @return void
     * @throws Exception
     * @throws DataNotFoundException
     * @throws ModelNotFoundException
     * @throws DbException
     */
    public function do()
    {
        // 这些订单是要推送的
        $list = ShopingConn::getConn()
            ->table(Table::Table_Order)
            ->where('is_import', 0)
            ->where('status', 1)
            ->where('order_type', 1)
            ->select();

        \other\Log::tongtu(__METHOD__."ceshi");


        var_dump($list);
        exit();
    }
}
